import {createApp} from 'vue'
import App from './App.vue'
import {createPinia} from 'pinia'
import router from './router'
import MyPlugin, { type MyPluginOptions } from './plugins/my-plugin'
// 创建应用
const app = createApp(App)
// 创建pinia
const pinia = createPinia()
// 配置选项
const pluginOptions: MyPluginOptions = {
    prefix: 'MyApp',
    theme: 'light',
    maxNotifications: 5
}

// 安装插件
app.use(MyPlugin, pluginOptions)
// 安装插件
app.use(pinia)
// 安装路由器
app.use(router)
// 挂载应用
app.mount('#app')
